package thinking

import scala.collection.mutable
object Set使用 {
  def main(args: Array[String]): Unit = {
    //不可变
    val set = Set(1, 2, 3)
    //可变
    val value = mutable.Set(1, 2, 3, 4)

    //添加
    value +=(6,5)
    value.foreach(println)

    //删除
    value -= (4)
    value.foreach(println)

    val max = value.max
    println(max)




  }

}
